home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: dmpeter@aol.com (Dmpeter)
- Newsgroups: comp.lang.c
- Subject: Calling a DOS TSR from C
- Date: 21 Feb 1996 09:14:55 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4gf9cv$52q@newsbf02.news.aol.com>
- Reply-To: dmpeter@aol.com (Dmpeter)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- I have written a DOS C program which launches a 1 K DOS TSR with one
- argument. I have used a number of different methods to launch the TSR
- (see below), but none are adequate:
-
- -When I use the 'system' function to launch the TSR, it takes the
- argument and runs the TSR fine. A mem/s shows that the TSR is in fact
- taking only 1K, but my largest executable program size is cut down by 90K.
- The C program is not clearing properly, even when I put in an exit(0).
-
- -When I use the 'exec' or 'spawn' family of functions, memory is no longer
- leaked, but the argument is not being passed to the TSR at all.
- (ex. execl(*PrgName,*Argument,NULL)
-
- Is there anyone that can shed some light on this problem for me? It would
- be much appreciated.
-
-
- Thanks-
-
- Dan Peterson
-